﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LEE.EntityFrameworkCore.Extentions.Entities.Pagination
{
    /// <summary>
    /// 分页查询基础请求抽象类
    /// </summary>
    public abstract class PagingRequest : PagingBase
    {
        /// <summary>
        /// 启用分页
        /// </summary>
        public virtual bool EnabledPaging { get; set; } = true;

        /// <summary>
        /// 跳过多少条数据
        /// </summary>
        public virtual int Offset
        {
            get
            {
                return (Page - 1) * Limit;
            }
        }
    }
}
